//
//  ViewController.m
//  TestSelector
//
//  Created by gzjd on 2017/12/10.
//  Copyright © 2017年 gzjd. All rights reserved.
//
#import "Dog.h"
#import "ViewController.h"
#import "Dog.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    Dog *dog=[[Dog alloc]init];
    dog.name=@"hello";
    [dog test:@"hello123678" setAge:0];
    NSLog(@"Dog=%@",dog.name);
    [dog addTarget:self action:@selector(btnClick:) withObject:@"good nice too"];

    // Do any additional setup after loading the view, typically from a nib.
}
-(void)btnClick:(NSString *)name
{
    NSLog(@"%@",name);
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
